import UIKit

class AlbumImageTIFF: NSObject {
    // 创建时间
    var dateTime: String = ""
    
    // 制作厂商
    var make: String = ""
    
    // 设备模型
    var model: String = ""
    
    // 方向
    var orientation = 0
    
    // 分辨率单位
    var resolutionUnit = 0
    
    // X分辨率
    var xResolution: CGFloat = 0
    
    // Y分辨率
    var yResolution: CGFloat = 0
    
    init(dict: NSDictionary?) {
        dateTime = String(dict?["DateTime"])
        make = String(dict?["Make"])
        model = String(dict?["Model"])
        orientation = (dict?["Orientation"] as? Int) ?? -1
        resolutionUnit = (dict?["ResolutionUnit"] as? Int) ?? -1
        xResolution = (dict?["XResolution"] as? CGFloat) ?? -1
        yResolution = (dict?["YResolution"] as? CGFloat) ?? -1
        
        // print("AlbumImageTIFF:   dateTime:\(dateTime), make:\(make), model:\(model), orientation:\(orientation), resolutionUnit:\(resolutionUnit), xResolution:\(xResolution), yResolution:\(yResolution)\n\n")
    }
    
    deinit {
        // print("Album -- AlbumImageTIFF: \(dateTime) deinit")
    }
}
